<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="http://mockjs.com/dist/mock.js"></script>
    <script src="./node_modules/jquery/dist/jquery.js"></script>
    <title>2018/12/4</title>
    <!--好的代码像粥一样,是得用时间和精力熬的。-->
</head>
<body>
<div id="demo"></div>
<script>
    var str = {
        'name':'lipei',
        'sex':'false',
        'age':'18',
    };
    var str_person = JSON.stringify(str,null,8);
    $('<pre>').text(str_person).appendTo('#demo');

</script>
</body>
</html>
